package cn.yujiago.activiti.mapper;

import cn.yujiago.activiti.entity.LeaveBill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LeaveBillMapper {

    /**
     * 插入请假单
     */
    Long insert(LeaveBill leaveBill);

    /**
     * 根据ID查询请假单
     */
    LeaveBill selectById(@Param("id") String id);

    /**
     * 根据ID更新状态
     */
    void updateLeaveBillStatus(LeaveBill leaveBill);
}
